home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 2207 / 2207.xpi / chrome / cooliris.jar / content / cooliris / options.xul < prev    next >
Extensible Markup Language  |  2009-12-22  |  11KB  |  298 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <?xml-stylesheet href="chrome://browser/skin/browser.css" type="text/css"?>
  4. <?xml-stylesheet href="chrome://cooliris/skin/cooliris.css" type="text/css"?>
  5.  
  6. <window id="cooliris_options" 
  7.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  8.     title="User Preferences"
  9.     onload="cpvw_Prefs.getOptionsPreviewPrefs();sizeToContent();"
  10.     onkeypress="if (event.keyCode == 27) window.close();"
  11.     buttonlabelaccept="Save"
  12.     minheight="480">
  13.  
  14.  
  15.     <script type="application/x-javascript" src="chrome://cooliris/content/utils.js" />
  16.     <script type="application/x-javascript">
  17.  
  18.         function defaultEnableMesg()
  19.         {
  20.         var mesg;
  21.         if (document.getElementById('cooliris_defaultEnable').checked)
  22.         {
  23.  
  24.         mesg = "Enable previews is now Off. This means that Cooliris Previews will now work only on the sites \n selected by Cooliris along with the ones that you have enabled explicitly";
  25.         }
  26.         else
  27.         {
  28.  
  29.         mesg = "Enable previews is now On. This means that Cooliris Previews will now work for all sites \n on the world wide web except for the ones you have disabled explicitly.";
  30.         }
  31.  
  32.         alert(mesg);
  33.         }
  34.  
  35.         function disableEnableMesg()
  36.         {
  37.         var mesg;
  38.         if (document.getElementById('cooliris_globalDisable').checked)
  39.         {
  40.  
  41.         document.getElementById('cooliris_defaultEnable').disabled = false;
  42.         }
  43.         else
  44.         {
  45.         document.getElementById('cooliris_defaultEnable').disabled = true;
  46.         
  47.         }
  48.         }
  49.  
  50.     </script>
  51.     <vbox style="margin:10px;">
  52.     <tabbox id="cpvw_tabBox" flex="1">
  53.         <tabs>
  54.             <tab label="Settings"/>
  55.             <tab label="Quick Search"/>
  56.         </tabs>
  57.         <tabpanels flex="1" style="padding:0px 0px 3px 0px; " >
  58.             <tabpanel flex="1" orient="vertical">
  59.                 <vbox flex="10">
  60.                     <spacer height="10px"/>
  61.                     <hbox>
  62.                         <checkbox id="cooliris_defaultEnable" label="Enable previews for all websites" onclick="defaultEnableMesg()"/>
  63.                     </hbox>
  64.                     <hbox>
  65.                         <checkbox id="cooliris_globalDisable" label="Disable previews completely" onclick="disableEnableMesg()"/>
  66.                     </hbox>
  67.                     <hbox>
  68.                         <checkbox id="cooliris_prefetchWebsites" label="Prefetch websites"/>
  69.                     </hbox>
  70.                     <!--<hbox>
  71.                         <checkbox id="cooliris_applyBrowserZoom" label="Use browser's font size setting in preview window"/>
  72.                     </hbox>
  73.                     <hbox>
  74.                         <checkbox id="cooliris_inlineSubsearch" label="Enable Inline Subsearch"/>
  75.                     </hbox>-->
  76.                     <hbox>
  77.                         <checkbox id="cooliris_subsearchBar" label="Enable Subsearch Bar"/>
  78.                     </hbox>
  79.                     <spacer height="10px"/>
  80.                     <hbox style="-moz-box-align:center;">
  81.                         <label control="cooliris_previewTheme" value="Select theme:"/>
  82.                         <menulist id="cooliris_previewTheme" >
  83.                             <menupopup>
  84.                                 <menuitem value="default" label="Black" style="background-image:url(chrome://cooliris/skin/new/fill-black.png)" class="menuitem-iconic" />
  85.                                 <menuitem value="white" label="White" style="background-image:url(chrome://cooliris/skin/new/fill-white.png)" class="menuitem-iconic" />
  86.                             </menupopup>
  87.                         </menulist>
  88.                     </hbox>
  89.  
  90.                     <spacer height="5px"/>
  91.                     <hbox style="-moz-box-align:center;">
  92.                         <label control="cooliris_previewOpenMode" value="Preview Open Mode:"/>
  93.                         <menulist id="cooliris_previewOpenMode">
  94.                             <menupopup>
  95.                                 <menuitem value="direct" label="Open Preview on Mouseover"/>
  96.                                 <menuitem value="icon" label="Open Preview on Mouseover Icon"/>
  97.                                 <menuitem value="icon-click" label="Open Preview on Clicking Icon"/>
  98.                                 <menuitem value="click" label="Open Preview on Clicking Link"/>
  99.                                 <menuitem value="hotkey" label="Open Preview on Ctrl + Mouseover"/>
  100.                             </menupopup>
  101.                         </menulist>
  102.                     </hbox>
  103.                     <hbox>
  104.                         <spacer width="30px"/>
  105.                         <vbox>
  106.                             <hbox>
  107.                                 <checkbox id="cooliris_fixedLoc" label="Auto position window"/>
  108.                             </hbox>
  109.                             <hbox>
  110.                                 <checkbox id="cooliris_fixedIcon" label="Show mouseover icon at the end of the link"/>
  111.                             </hbox>
  112.                             <spacer height="5px"/>
  113.                             <hbox style="-moz-box-align:center;">
  114.                                 <vbox>
  115.                                     <label control="cooliris_openDelay" value="Delay opening preview window"/>
  116.                                     <hbox>
  117.                                         <spacer width="30px"/>
  118.                                         <textbox id="cooliris_openDelay" rows="1" cols="10" size="10" maxlength="10"/>
  119.                                         <label value="(milliseconds)"/>
  120.                                     </hbox>
  121.                                 </vbox>
  122.                             </hbox>
  123.                             
  124.                             <hbox style="-moz-box-align:center;">
  125.                                 <vbox>
  126.                                     <label control="cooliris_smallDivDelay" value="Delay appearance of Mouseover icon"/>
  127.                                     <hbox>
  128.                                         <spacer width="30px"/>
  129.                                         <textbox id="cooliris_smallDivDelay" rows="1" cols="10" size="10" maxlength="10"/>
  130.                                         <label value="(milliseconds)"/>
  131.                                     </hbox>
  132.                                 </vbox>
  133.                             </hbox>
  134.                             
  135.                             <!--<hbox style="-moz-box-align:center;">
  136.                                 <vbox>
  137.                                     <label control="cooliris_previewOnIconDelay" value="Delay Preview on mouseover icon"/>
  138.                                     <hbox>
  139.                                         <spacer width="30px"/>
  140.                                         <textbox id="cooliris_previewOnIconDelay" rows="1" cols="10" size="10" maxlength="10"/>
  141.                                         <label value="(milliseconds)"/>
  142.                                     </hbox>
  143.                                 </vbox>
  144.                             </hbox>
  145.                             -->
  146.                             <hbox style="-moz-box-align:center;">
  147.                                 <vbox>
  148.                                     <label control="cooliris_hidePreviewDelay" value="Delay closing preview window"/>
  149.                                     <hbox>
  150.                                         <spacer width="30px"/>
  151.                                         <textbox id="cooliris_hidePreviewDelay" rows="1" cols="10" size="10" maxlength="10"/>
  152.                                         <label value="(milliseconds)"/>
  153.                                     </hbox>
  154.                                 </vbox>
  155.                             </hbox>
  156.                         </vbox>
  157.                     </hbox>
  158.                     
  159.                     
  160.                     <spacer height="10px"/>
  161.                     <!--<vbox>
  162.                         <checkbox label="In slideshow mode, filter out images smaller than" oncommand="cpvw_Prefs.managePiclensFilter();"  id="cooliris_piclensFilter"/>
  163.                         <hbox id="cooliris_piclens_filter_box">
  164.                             <spacer width="30px"/>
  165.                             <vbox>
  166.                                 <hbox>
  167.                                     <label value="Width " style="padding:5px 0px 0px 0px"/>
  168.                                     <textbox id="cooliris_piclens_width" rows="1" cols="10" size="3" maxlength="3"/>
  169.                                     <label value="pixels" style="padding:5px 0px 0px 0px"/>
  170.                                 </hbox>
  171.                                 <hbox>
  172.                                     <label value="Height" style="padding:5px 0px 0px 0px"/>
  173.                                     <textbox id="cooliris_piclens_height" rows="1" cols="10" size="3" maxlength="3"/>
  174.                                     <label value="pixels" style="padding:5px 0px 0px 0px"/>
  175.                                 </hbox>
  176.                             </vbox>
  177.                         </hbox>                            
  178.                     </vbox>-->
  179.                 </vbox>
  180.             </tabpanel>
  181.             <tabpanel flex="1" orient="vertical">
  182.                 <vbox flex="2">
  183.                     <spacer height="5px"/>
  184.                     <hbox flex="1" style="-moz-box-pack:center;">
  185.                         <vbox style="width:190px">
  186.                             <hbox>
  187.                                 <label  value="Non-Activated Websites"/>
  188.                             </hbox>
  189.                             <tree id="cooliris_contextSiteTree" flex="5"  onselect="cpvw_contextSitesTreeView.selection.invalidateSelection();cpvw_contextSitesTreeView.editWebsite();">
  190.                                 <treecols>                                
  191.                                     <treecol id="cooliris_contextSiteTree_name" label="Website Name" flex="1" persist="width ordinal hidden sortDirection"/>
  192.                                 </treecols>
  193.                                 <treechildren/>
  194.                             </tree>                            
  195.                         </vbox>                        
  196.                         <vbox pack="center">
  197.                             <button id="cooliris_selectWebsite" class="cooliris-options-select" style="min-width:0px"
  198.                                 oncommand="cpvw_contextSitesTreeView.selectWebsites('show')"/>
  199.                             <spacer height="3px"/>
  200.                             <button id="cooliris_deselectWebsite" class="cooliris-options-deselect"  style="min-width:0px"
  201.                                 oncommand="cpvw_contextSitesTreeView.deselectWebsites('hide')"/>
  202.                         </vbox>
  203.                         <vbox style="width:190px">
  204.                             
  205.                             <hbox>
  206.                                 <label  value="Activated Websites"/>                                
  207.                             </hbox>
  208.                                 <tree id="cooliris_contextSiteTreeSelected" flex="4" onselect="cpvw_contextSitesTreeView.selection.invalidateSelection();cpvw_contextSitesTreeView.editWebsite();">
  209.                                     <treecols>
  210.                                         <treecol id="cooliris_contextSiteTree_name" label="Website Name" flex="1" persist="width ordinal hidden sortDirection"/>
  211.                                     </treecols>
  212.                                     <treechildren/>
  213.                                 </tree>
  214.  
  215.                         </vbox>
  216.                     </hbox>
  217.                 
  218.                     <groupbox>
  219.                         <caption label="Instructions for adding your own websites"/>
  220.                         <description>
  221.                             1. In your Firefox browser, do a search on the website you want to add
  222.                         </description>
  223.                         <description>
  224.                             2. Copy the resulting URL from that search, and paste it into box #2 below
  225.                         </description>
  226.                         <description>
  227.                             3. In box #3, enter the exact word you searched
  228.                         </description>
  229.                         
  230.                     </groupbox>
  231.                     
  232.  
  233.                     <grid>
  234.                         <columns>
  235.                             <column/>
  236.                             <column flex="1"/>
  237.                         </columns>
  238.                         <rows>
  239.                             <row>
  240.                                 <label style="-moz-box-pack:center;" control="siteName" tooltiptext="Site Name" value="1. Site Name:"/>
  241.                                 <hbox style="-moz-box-align:center;">
  242.                                     <textbox id="siteName"/>
  243.                                     <label control="siteName" value="(Name displayed in the list above)"/>
  244.                                 </hbox>
  245.                             </row>
  246.                             <row>
  247.                                 <vbox>
  248.                                     <label control="siteUrl" value="2. URL:" tooltiptext="Url of the website" />
  249.                                 </vbox>
  250.                                 <vbox>
  251.                                     <textbox  id="siteUrl" value="http://" type="timed" timeout="1500"/>
  252.  
  253.                                 </vbox>
  254.                             </row>
  255.                             <row>
  256.                                 <vbox>
  257.                                     <label control="searchPhrase" value="3. Search word:" tooltiptext="Type in the word you searched for the above url" />
  258.                                 </vbox>
  259.                                 <vbox>
  260.                                     <textbox id="searchPhrase" value=""/>
  261.                                 </vbox>
  262.                             </row>
  263.                             <!--<row>
  264.                                 <vbox>
  265.                                     <label control="siteIcon" value="4. Website Icon:" />
  266.                                     <label control="siteUrl" value=""/>
  267.                                 </vbox>
  268.                                 <vbox>
  269.                                     <textbox id="siteIcon" value="" oninput="cpvw_contextSitesTreeView.isIconEdited = true;"/>
  270.                                 </vbox>
  271.                             </row>-->
  272.                                 <hbox style="-moz-box-align:center">
  273.                                     <label value="Click here to learn more" style="color:blue;cursor:pointer;" onclick="cpvw_contextSitesTreeView.openHelp();"/>
  274.                                     <spacer flex="1"/>
  275.                                     <button id="btnAddWebsite" label="Add" oncommand="cpvw_contextSitesTreeView.addWebsite()"/>
  276.                                     <button id="btnRemoveWebsite" label="Remove" oncommand="cpvw_contextSitesTreeView.removeWebsite()"/>
  277.                                     <button id="btnClear" label="Clear" oncommand="cpvw_contextSitesTreeView.clearDetails()"/>
  278.                                 </hbox>
  279.                             
  280.                         </rows>
  281.                     </grid>
  282.  
  283.           <spacer height="5px"/>
  284.                     <!--<listbox id="cooliris_contextList" rows="6"  seltype="multiple" hidden="true"/>-->
  285.                 </vbox>            
  286.             </tabpanel>
  287.         </tabpanels>
  288.     </tabbox>
  289.     <hbox style="margin-top:5px">
  290.             <button label="Restore Default Settings" onclick="cpvw_Prefs.restoreDefaults();"/>
  291.             <spacer flex="1"/>
  292.             <button label="Save" onclick="cpvw_Prefs.doOK();"/>
  293.             <button label="Cancel" onclick="cpvw_Prefs.doCancel();"/>
  294.         </hbox>
  295.     </vbox>    
  296. </window>
  297.  
  298.